package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 物料单位对象 material_unit_data
 *
 * @author ruoyi
 * @date 2025-07-07
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.MaterialUnitDataMapper.MaterialUnitDataResult")
public class MaterialUnitData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 单位ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 单位编码
     */
    @Excel(name = "单位编码")
    private String materialUnitCode;

    /**
     * 单位名称
     */
    @Excel(name = "单位名称")
    private String materialUnitName;

    /**
     * 单位符号
     */
    @Excel(name = "单位符号")
    private String materialUnitSymbol;

    /**
     * 删除标志（0代表存在 2代表删除)
     */
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Version
    private Long version;


}